﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using FisheryPlatform.Entity;
using FisheryPlatform.Bussiness.Account;
using FisheryPlatform.Bussiness.LoginCookie;
using System.Web.Script.Serialization;
using FisheryPlatform.Bussiness.Option;
using FisheryPlatform.SiteConfig.FileStore;
using FisheryPlatform.Bussiness.FileStore;
using FisheryPlatform.Common;

namespace FisheryPlatform.Web.Admin
{
    public partial class Index : System.Web.UI.Page
    {
        protected UsersEntity SiteContract = null;

        protected void Page_Load(object sender, EventArgs e)
        {
            SiteContract = UserManager.GetUserInfo(new LoginUserInfo().AdminUserInfo.UserId);
            //var list = new List<object>();
            //for (var i = 0; i < 10; i++)
            //{
            //    list.Add(new { i = i, v = i + "_a", n = i + "_name" });
            //}
            //OptionsEntity oe = new OptionsEntity();
            //oe.Name = OptionPostConstants.Top;
            //oe.ValueList = list;
            //OptionManager.Save(oe);
            //OptionManager.GetByOptionName(OptionPostConstants.Top).ValueList.ForEach(item =>
            //{
            //    var tmp = ((Dictionary<string, object>)item);
            //    foreach (var key in tmp.Keys)
            //    {
            //        Response.Write(key + ":" + tmp[key]+";");
            //    }
            //    Response.Write("<br/>");
            //});

        }
    }
}